package com.inmaytide.website.facade.deploy;

import com.inmaytide.website.domain.entities.deploy.DeployInfo;
import com.inmaytide.website.domain.entities.deploy.DeployProject;
import com.inmaytide.website.domain.vo.deploy.DeployInfoVo;
import com.inmaytide.website.framework.bean.JsonResult;
import com.inmaytide.website.utils.pagination.Pagination;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DeployInfoFacade {

    JsonResult deploy(DeployInfoVo info);

    List<DeployProject> findProjectsInUse();

    List<DeployInfo> findList();

    JsonResult findOne(Long id);

    List<String> readZip(MultipartFile file) throws Exception;

    /**
     * 分页
     *
     * @param request
     * @param pagination
     * @return
     */
    Pagination<DeployInfoVo> pagination(HttpServletRequest request, Pagination<DeployInfoVo> pagination);
}
